package basics.day16.second;

import java.util.Calendar;

public class CalendarDemo {
    public static void main(String[] args) {
        fun_1();
    }

    public static void fun_1() {
        Calendar cld = Calendar.getInstance();
        int year = cld.get(Calendar.YEAR);
        System.out.println(year);
        int day = cld.get(Calendar.DAY_OF_MONTH);
        System.out.println(day);
        int month = cld.get(Calendar.MONTH);
        System.out.println(month);
        System.out.println(cld.get(Calendar.HOUR_OF_DAY));
        System.out.println(cld.get(Calendar.HOUR));
        System.out.println(cld.get(Calendar.MINUTE));
        System.out.println(cld.get(Calendar.SECOND));

    }
}
